numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(numbers[3:6])
print(numbers[0:1])
print(numbers[7:10])
print(numbers[-3:-1])
print(numbers[-3:0])
print(numbers[-3:])
print(numbers[:3])
print(numbers[:])

# url = input("Please enter the URL:")
# domain = url[11:-4]
# print("Domain name:" + domain)


print(numbers[0:10:1])
print(numbers[0:10:2])
print(numbers[0:10:4])
print(numbers[::2])

print(numbers[8:3:-1])
print(numbers[10:0:-2])

print([1, 2, 3] + [4, 5, 6])

print('python ' * 5)

sequence = [None] * 10
print(sequence)

database = [
 ['albert', '1234'],
 ['dilbert', '4242'],
 ['smith', '7524'],
 ['jones', '9843']
]

# username = input("Username:")
# pin = input("PIN code:")
# if [username, pin] in database:
#   print("Access granted")
# else:
#   print("access denied")

numbers = [100, 34, 678]
print(len(numbers))
print(max(numbers))
print(min(numbers))

hello_list = list('Hello')
print(hello_list)
print(''.join(hello_list))

x = [1, 1, 1]
x[1] = 2
print(x)

name = list('Perl')
name[2:] = list('ar')
print(name)

name = list('Perl')
name[1:] = list('ython')
print(name)

numbers = [1, 5]
numbers[1:1] = [2, 3, 4]
print(numbers)
numbers[1:4] = []
print(numbers)

lst = [1, 2, 3]
lst.append(4)
print(lst)

# clear
lst = [1, 2, 3]
lst.clear()
print(lst)

# copy
a = [1, 2, 3]
b = a
b[1] = 4
print(a)

# copy
a = [1, 2, 3]
b = a.copy()
b[1] = 4
print(b)
print(a)

# count
print(['to', 'be', 'or', 'not', 'to', 'be'].count('to'))

# extend
a = [1, 2, 3]
b = [4, 5, 6]
a.extend(b)
print(a)

numbers = [1, 2, 3, 5, 6, 7]
numbers.insert(3, 4)
print(numbers)

x = [1, 2, 3]
print(x.pop())
print(x)

x = [1, 2, 3]
print(x.pop(0))
print(x)